package ooday05_vis;
/** 复杂版枚举的测试类 */
public class EnumTes {
    public static void main(String[] args) {
        Seasons s = Seasons.WINTER;
        System.out.println(s.getSeasonName()+"，"+s.getSeasonDesc()); //冬天，冷

        System.out.println("--------------------------------------------");

        Seasons[] seasons = Seasons.values();
        for (int i=0;i<seasons.length;i++){
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName());
            System.out.println(seasons[i].getSeasonDesc());
        }


    }
}
